//
//  ComparisonSelectView.h
//  SecondPage
//
//  Created by winston on 13-5-8.
//  Copyright (c) 2013年 winston. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^DidSelectedBlcok)(void);
typedef void(^CancelSelectedBlock)(void);

@interface ComparisonSelectView : UIView<UITableViewDelegate,UITableViewDataSource>
{
    UIControl * bgControl;
    UILabel * titleLabel;
    UIButton * finishBtn;
    UIImageView * lineView;
    
    UIImageView * contentView;
    
    UITableView * mainTable;
    UITableView * subTable;
    
    NSMutableArray * mainTableArray;
    NSMutableArray * subTableArray;
    
    BOOL isMainTableShowed;
    NSInteger currentSubIndex;
    NSDictionary * selectedData;
    
    DidSelectedBlcok  blockSelected;
    CancelSelectedBlock  blockCancle;
    
    
    NSInteger selectBrandId;
    NSInteger selectSeriesId;
    NSInteger selectAutoId;
}

@property(nonatomic)NSInteger selectBrandId;
@property(nonatomic)NSInteger selectSeriesId;
@property(nonatomic)NSInteger selectAutoId;
@property(nonatomic,copy) DidSelectedBlcok  blockSelected;
@property(nonatomic,copy) CancelSelectedBlock  blockCancle;

+(ComparisonSelectView*)instance;

-(void)showWithDidSelectBlock:(DidSelectedBlcok)block1 cancelSelectBlock:(CancelSelectedBlock)block2;

@end
